package br.com.etecmatao.business.impl;

import br.com.etecmatao.business.AbstractBusiness;
import br.com.etecmatao.business.ProfessoresBusiness;
import br.com.etecmatao.model.Professores;
import java.util.List;

public class ProfessoresBusinessImpl extends AbstractBusiness implements ProfessoresBusiness{

    public void save(Professores professores) {
        Professores professoresBD = daoFactoryLocator.getProfessoresDAO().save(professores);
    }

    public List<Professores> finByAll() {
        List<Professores> professoresBD = daoFactoryLocator.getProfessoresDAO().findAll();
        return professoresBD;
    }

    public void delete(Professores professores) {
        daoFactoryLocator.getProfessoresDAO().delete(professores);
    }

    public void update(Professores professores) {
        daoFactoryLocator.getProfessoresDAO().update(professores);
    }

}
